﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ActionProvince.ascx.cs" Inherits="WebUI.Admin.UserControls.ActionProvince" %>
<%@ Register src="../../UserControls/NHPagingControl.ascx" tagname="NHPagingControl" tagprefix="uc1" %>
<table class="table" cellspacing="0" rules="all" border="1" style="width: 100%; border-collapse: collapse;">
    <tbody>
        <tr>
            <th scope="col">
              Mã Tỉnh
            </th>
            <th scope="col">
              Tên Vùng
            </th>
            <th scope="col">
                Tên Tỉnh
            </th>
            <th scope="col">
              Tên Loại xổ Số
            </th>
            <th scope="col">
            </th>
        </tr>
        <asp:Repeater ID="RepeaterProvince" runat="server" 
            onitemcommand="RepeaterProvince_ItemCommand">
            <ItemTemplate>
                <tr>
                    <td style="text-align: center">
                     <%# Eval("PROVINCEID")%>
                       
                    </td>
                    <td style="text-align: center">
                        <%# Eval("REGIONID")%>
                    </td>
                    <td style="text-align: center">
                      <%#ThanhTu.GNC.Media.KQXS.Common.Utils.ToUTF8String((byte[]) Eval("PRINCENAME"))%>
                    </td>
                     <%-- <td style="text-align: center">
                        <%# Eval("LOTTERYNAME")%>
                    </td>--%>
                    </td>
                    <td style="text-align: center">
                        <a href="../Admin/UpdateProvince.aspx?PovinceID=<%# Eval("PROVINCEID")%>&RegionID=<%# Eval("REGIONID") %>&PRINCENAME=<%# Eval("PRINCENAME") %>">
                            Update</a>
                        <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="return confirm('Are you sure you want to Delete this Record?');"
                            CommandName='<%# Eval("PROVINCEID") %>'>Delete</asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                <asp:Label ID="lblFooter" runat="server"></asp:Label>
            </FooterTemplate>
        </asp:Repeater>
        <tr>
            <td colspan="5">
                <table width="100%" cellpadding="0" cellspacing="0" border="0" style="border: 0px;
                    padding-top: 10px; background-color: Transparent;">
                    <uc1:NHPagingControl ID="NHPagingControl1" runat="server" />
                </table>
            </td>
        </tr>
    </tbody>
</table>